{% extends "base.html" %}

{% block content %}

    <h4><p class="text-center">{{ posts.title }}</p></h4>
    <hr>
    <blockquote>
        <p>{{ posts.summary|safe }}</p>
    </blockquote>
    <p>{{ posts.content|safe }}</p>
    <small>
        <ul class="list-inline text-right">
            <li>
                Posted @ {{ posts.publish_datetime }}
            </li>
            <li>|</li>
            <li>{{ posts.status }}</li>
            <li>|</li>
            <li>
                {% for tag in posts.post_tag_list %}
                    <a href="/tag/{{ tag }}/">{{ tag }}</a>
                    {% if not forloop.last %}
                        ,
                    {% endif %}
                {% endfor %}
            </li>
            <li>|</li>
            <li>
                <a href="/category/{{ posts.category }}/">{{ posts.category }}</a>
            </li>
            <li>|</li>
            <li>{{ posts.view_count }} views</li>
        </ul>
    </small>


{% endblock content %}
